
#include "SimpleFactory.h"

int _tmain(int argc, _TCHAR* argv[])
{
	Factory *fac = new Factory();
	AbstractSportProduct_s *product = NULL;

	product = fac->getSportProduct("Basketball");
	product->printName();
	product->play();

	product = fac->getSportProduct("Football");
	product->printName();
	product->play();

	return 0;
}


